<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>卖出股票</title>

    <link rel="stylesheet" href="angularjs/pagination.css">
    <!--3.引入Layer样式； -->
    <link rel="stylesheet" href="layer/layer/theme/default/layer.css">
    <!--7.引入angularJS框架-->
    <script src="angularjs/angular.min.js"></script>
    <!--8.引入angularJS的分页框架-->
    <script src="angularjs/pagination.js"></script>


    <script>
        var app = angular.module("myApp", []);
        app.controller("myMaiChu", function ($scope, $http) {

            $scope.userid= $.cookie("stock_user_id");
            //1. 失去焦点事件___根据股票代码查询相关信息
            $scope.posSelect = function () {
                var a = $("#gpdm").val();
                if (a.length < 1) {
                    $("#gpdm").val("");// 股票代码
                    $("#gpmc").val("");// 股票名称
                    $("#kmsl").val("");// 可卖数量
                    $("#mcje").val("");// 卖出价格
                    $("#mcsl").val("");// 卖出数量
                    $("#sp1").html("请输入股票代码!");  //提示音
                    $scope.sfive = null;
                    $scope.bfive = null;
                } else {  // 通过用户和股票编号查询出的 股票名,可用数量
                    $scope.marketInit("sz"+$("#gpdm").val());
                    $("#sp1").html("");
                    $http.get("/cli/trading/selectPos?stockPosUserid="+$scope.userid+"&stockPosCode=" + $("#gpdm").val()).success(function (data) {
                       if (data.code==101) {
                           $("#gpmc").val(data.data.stockPosCompany);
                           $("#kmsl").val(data.data.stockPosKyblance);
                           $("#mcje").val(data.data.stockPosMoney);// 卖出价格
                       }else {
                           layer.msg("未持有此股票", {icon: 5});
                           // alert("未持有此股票!")
                       }

                    });

                }

            };

            //2. 点击事件--重填
            $scope.resetData = function () {
                $("#gpdm").val(""); // 股票代码
                $("#gpmc").val(""); // 股票名称
                $("#kmsl").val(""); // 可卖数量
                $("#mcje").val(""); // 卖出价格
                $("#mcsl").val(""); // 卖出数量
                $scope.list = null;
            };

            //3. 点击事件--卖出
            $scope.submitData = function () {
                var a1 = $("#gpdm").val();// 股票代码
                var a2 = $("#gpmc").val();// 股票名称
                var a3 = $("#mcje").val();// 卖出价格
                var a4 = $("#mcsl").val();// 卖出数量
                var a5 = $("#kmsl").val();// 可卖数量
                if (a1 == null || a1 == "" || a1.length < 1) {
                    layer.msg("请输入股票编号", {icon: 5});
                    // alert("请输入股票编号!")
                } else {
                    if (a2 == null || a2 == "" || a2.length < 1 ||
                        a3 == null || a3 == "" || a3.length < 1 ||
                        a4 == null || a4 == "" || a4.length < 1) {
                        layer.msg("未持有此股票,无法卖出!", {icon: 5});
                        // alert("未持有此股票,无法卖出!")
                    } else {
                        if (parseInt(a4) <= parseInt(a5)) {
                            $("#myModal").modal("show");     //手动打开模态框
                            $scope.gpdm1 = $("#gpdm").val(); // 股票代码
                            $scope.gpmc1 = $("#gpmc").val(); // 股票名称
                            $scope.mcje1 = $("#mcje").val(); // 卖出价格
                            $scope.mcsl1 = $("#mcsl").val(); // 卖出数量
                        } else {
                            layer.msg("所持股票数量不足,请重新输入卖出数量!", {icon: 5});
                            // alert("所持股票数量不足,请重新输入卖出数量!")
                        }
                    }
                }
            };

            //4. 点击事件_确定保存
            $scope.submitData1 = function () {
                $("#myModal").modal("hide");   //关闭模态框
                // 股票代码,股票名称,卖出价格,卖出数量
                $http.get("/cli/trading/addEntrust?stockEntrustUserid=" + $scope.userid +
                    "&stockEntrustCode=" + $scope.gpdm1 +
                    "&stockEntrustCompany=" + $scope.gpmc1 +
                    "&stockEntrustMoney=" + $scope.mcje1 +
                    "&stockEntrustNum=" + $scope.mcsl1
                ).success(function (data) {
                    layer.msg("操作成功", {icon: 6});
                    $scope.marketInit("sz"+$("#gpdm").val());
                });
                $("#gpdm").val(""); // 股票代码
                $("#gpmc").val(""); // 股票名称
                $("#kmsl").val(""); // 可卖数量
                $("#mcje").val(""); // 卖出价格
                $("#mcsl").val(""); // 卖出数量
                $scope.list = null;
            };

            //5. 买卖盘信息获取

            $scope.marketInit = function (stockCode) {
                $http.post("/cli/stock/pageInit?stockCode=" + stockCode).success(function (data) {
                    $scope.stockTotalprice = data.data[0].stockTotalprice;
                    $scope.stockTurnover = data.data[0].stockTurnover;
                    $scope.stockUpanddowns = data.data[0].stockUpanddowns;
                    $scope.stockVolume = data.data[0].stockVolume;
                    $scope.stockNewprice = data.data[1].stockNewprice;
                    $scope.stockRMax = data.data[2].stockRMax;
                    $scope.stockFMix = data.data[2].stockFMix;
                });
                $scope.bosInit(stockCode);
            };
            $scope.bosInit = function (stockCode) {
                $http.post("/trad/bos/getfive?code=" + stockCode + "&type=买入").success(function (data) {
                    $scope.bfive = data.data;
                });
                $http.post("/trad/bos/getfive?code=" + stockCode + "&type=卖出").success(function (data) {
                    $scope.sfive = data.data;
                });
            };
            //删除uid的cookie
            $scope.delCookie = function () {
                $.removeCookie('stock_user_id',{ path: '/'});
                $.removeCookie("stock_user_role",{path:'/'});
            }
        });
    </script>

    <!-- Custom fonts for this template -->
    <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
          rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/sb-admin-2.min.css" rel="stylesheet">

    <!-- Custom styles for this page -->
    <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">

</head>

<body id="page-top" ng-controller="myMaiChu" ng-app="myApp">

<!-- Page Wrapper -->
<div id="wrapper">

    <!-- 侧边栏开始 -->
    <ul class="navbar-nav bg-gray-800 sidebar sidebar-dark accordion" id="accordionSidebar">

        <!-- 公司logo与公司名区域 -->
        <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
            <div class="sidebar-brand-icon rotate-n-15">
                <i class="fas fa-laugh-wink"></i>
            </div>
            <div class="sidebar-brand-text mx-3">金正股份<sup>TM</sup></div>
        </a>

        <!-- 分割线 -->
        <hr class="sidebar-divider my-0">

        <!-- 首页模块 -->
        <li class="nav-item active">
            <a class="nav-link" href="index.html">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>首页</span></a>
        </li>

        <!-- 分割线 -->
        <hr class="sidebar-divider">

        <!-- 股票行情头标题 -->
        <div class="sidebar-heading">
            股票市场
        </div>

        <!-- 热门股票模块 -->
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo"
               aria-expanded="true" aria-controls="collapseTwo">

                <i class="fas fa-fire fa-cog"></i>

                <span>热门股票</span>
            </a>
   <!--         <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <h6 class="collapse-header">Custom Components:</h6>
                    <a class="collapse-item" href="buttons.html">Buttons</a>
                    <a class="collapse-item" href="cards.html">Cards</a>
                </div>
            </div>-->
        </li>

        <!-- 股票行情模块 -->
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities"
               aria-expanded="true" aria-controls="collapseUtilities">
                <i class="fas fa-fw fa-chart-area"></i>
                <span>股票行情</span>
            </a>
            <!--<div id="collapseUtilities" class="collapse" aria-labelledby="headingUtilities"
                 data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <h6 class="collapse-header">Custom Utilities:</h6>
                    <a class="collapse-item" href="maket_K.html">K线图</a>
                    <a class="collapse-item" href="utilities-color.html">Colors</a>
                    <a class="collapse-item" href="utilities-border.html">Borders</a>
                    <a class="collapse-item" href="utilities-animation.html">Animations</a>
                    <a class="collapse-item" href="utilities-other.html">Other</a>
                </div>
            </div>-->
        </li>

        <!-- 分割线 -->
        <hr class="sidebar-divider">

        <!-- 交易系统头标题 -->
        <div class="sidebar-heading">
            交易中心
        </div>

        <!-- 股票买入模块 -->

        <li class="nav-item">
            <a class="nav-link" href="buy.html">
                <i class="fas fa-dollar-sign fa-2x"></i>
                <span>股票买入</span></a>
        </li>

        <!-- 股票卖出模块 -->
        <li class="nav-item">
            <a class="nav-link" href="maichu.html">
                <i class="fas fa-outdent"></i>
                <span>股票卖出</span></a>
        </li>

        <!-- 股票撤销模块 -->
        <li class="nav-item">
            <a class="nav-link" href="chedan.html">
                <i class="fas fa-window-close fa-table"></i>
                <span>股票撤销</span></a>
        </li>
        <!-- 分割线 -->
        <hr class="sidebar-divider bg-gray-800">
        <!--用户中心模块-->
        <div class="sidebar-heading">
            用户中心
        </div>
        <!-- 个人股票模块 -->
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages"
               aria-expanded="true" aria-controls="collapsePages">
                <i class="fas fa-warehouse fa-folder"></i>
                <span>我的股票</span>
            </a>
            <div id="collapsePages" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                <div class="bg-gray-200 py-2 collapse-inner rounded">
                    <h6 class="collapse-header" style="color:gray">股仓</h6>
                    <a class="collapse-item" href="pos.html"> <i class="fas fa-arrow-right"></i>持仓</a>
                    <a class="collapse-item" href="chengjiao.html"> <i class="fas fa-arrow-right"></i>成交</a>
                    <a class="collapse-item" href="weituo.html"> <i class="fas fa-arrow-right"></i>委托</a>
                </div>
            </div>
        </li>
        <!-- 个人中心模块 -->
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#center" aria-expanded="true" aria-controls="center">
                <i class="fas fa-user-astronaut fa-folder"></i>
                <span>个人中心</span>
            </a>
            <div id="center" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                <div class="bg-gray-200 py-2 collapse-inner rounded">
                    <a class="collapse-item" href="setting.html"> <i class="fas fa-user-cog">&nbsp;</i>设置</a>
                    <a class="collapse-item" href="wallet.html"> <i class="fas fa-wallet">&nbsp;</i>钱包</a>
                </div>
            </div>
        </li>
        <!-- Divider -->
        <hr class="sidebar-divider d-none d-md-block">

        <!-- Sidebar Toggler (Sidebar) -->
        <div class="text-center d-none d-md-inline">
            <button class="rounded-circle border-0" id="sidebarToggle"></button>
        </div>

    </ul>
    <!-- End of Sidebar -->

    <!-- Content Wrapper -->
    <div id="content-wrapper" class="d-flex flex-column">

        <!-- Main Content -->
        <div id="content">

            <!-- Topbar -->
            <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

                <!-- Sidebar Toggle (Topbar) -->
                <form class="form-inline">
                    <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
                        <i class="fa fa-bars"></i>
                    </button>
                </form>

                <!--
                          &lt;!&ndash; Topbar Search &ndash;&gt;
                          <form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
                            <div class="input-group">
                              <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
                              <div class="input-group-append">
                                <button class="btn btn-primary" type="button">
                                  <i class="fas fa-search fa-sm"></i>
                                </button>
                              </div>
                            </div>
                          </form>
                -->

                <!-- Topbar Navbar -->
                <ul class="navbar-nav ml-auto">

                    <!-- Nav Item - Search Dropdown (Visible Only XS) -->
                    <li class="nav-item dropdown no-arrow d-sm-none">
                        <a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <!-- Dropdown - Messages -->
                        <div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in" aria-labelledby="searchDropdown">
                            <form class="form-inline mr-auto w-100 navbar-search">
                                <div class="input-group">
                                    <input type="text" class="form-control bg-light border-0 small" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2">
                                    <div class="input-group-append">
                                        <button class="btn btn-primary" type="button">
                                            <i class="fas fa-search fa-sm"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </li>
                    <!-- 个人中心模块 -->
                    <li class="nav-item dropdown no-arrow">
                        <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="mr-2 d-none d-lg-inline text-gray-600 small">我的账户</span>
                            <img class="img-profile rounded-circle" src="img/headpic.jpg">
                        </a>
                        <!-- Dropdown - User Information -->
                        <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
                            <a class="dropdown-item" href="openAccount.html">
                                <i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
                                开户
                            </a>
                            <a class="dropdown-item" href="login.html">
                                <i class="fas fa-user-circle fa-sm fa-fw mr-2 text-gray-400"></i>
                                登录
                            </a>
                            <a class="dropdown-item" href="register.html">
                                <i class="fas fa-user-plus fa-sm fa-fw mr-2 text-gray-400"></i>
                                注册
                            </a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
                                <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
                                退出登录
                            </a>
                        </div>
                    </li>

                </ul>

            </nav>
            <!-- End of Topbar -->
            <div class="container-fluid">
                <div class="row">

                    <!-- 卖出股票 -->
                    <div class="col-xl-8 col-lg-7">
                        <div class="card shadow mb-4">
                            <!-- 头部 -->
                            <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                                <h6 class="m-0 font-weight-bold text-primary">卖出股票</h6>
                            </div>
                            <div class="card-body">
                                <!-- 卖出主要内容部分 -->
                                <div class="container">
                                    <div class="panel-heading ">
                                        <span style=" font-size: 24px; font-weight: bolder">卖出股票</span>
                                    </div>
                                    <div class="panel panel-body">
                                        <table class="table table-hover">
                                            <tr style="border: 0px solid;height: 30px">
                                                <td></td>
                                                <td><span>股票代码</span></td>
                                                <td><input type="text" id="gpdm"
                                                           style="font-size: 12px; height: 20px;width: 120px"
                                                           align="left"
                                                           onkeyup="value=value.replace(/[^0-9].[^0-9]/g,'')"
                                                           ng-blur="posSelect()"></td>
                                                <td style="width: 20%">
                                                    <span id="sp1" style="color: red"></span>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td></td>
                                                <td><span>股票名称</span></td>
                                                <td><input ng-model="Company" id="gpmc" type="text"
                                                           style="border: 0px;outline: medium;font-size: 12px; height: 20px;width: 120px"
                                                           align="left" readonly></td>
                                                <td style="width: 20%"></td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td><span>卖出价格</span></td>
                                                <td style=" width: 28%;"><input id="mcje" type="number"
                                                                                style="font-size: 12px; height: 20px;width: 120px"
                                                                                align="left"></td>
                                                <td style="width: 20%"></td>
                                            </tr>
                                            <tr style="border: 0px solid;height: 30px;">
                                                <td style="width: 30%"></td>
                                                <td><span>可卖数量(股)</span></td>
                                                <td><input ng-model="Kyblance" id="kmsl" type="text"
                                                           style="border: 0px;outline: medium;font-size: 12px; height: 20px;width: 120px"
                                                           align="left"  readonly></td>
                                                <td style="width: 20%"></td>
                                            </tr>

                                            <!--<tr>-->
                                                <!--<td></td>-->
                                                <!--<td><span>卖出价格</span></td>-->
                                                <!--<td style=" width: 28%;"><input id="mcje" type="text"-->
                                                                                <!--style="font-size: 12px; height: 20px;width: 120px"-->
                                                                                <!--align="left"></td>-->
                                                <!--<td style="width: 20%"></td>-->
                                            <!--</tr>-->

                                            <tr style="border: 0px solid;height: 30px;">
                                                <td></td>
                                                <td><span>卖出数量</span></td>
                                                <td><input type="number" id="mcsl"
                                                           style="font-size: 12px; height: 20px;width: 120px"
                                                           align="left">
                                                </td>
                                                <td style="width: 20%"></td>
                                            </tr>
                                        </table>
                                        <div>
                                            <table class="table table-striped">
                                                <tr style="text-align: center">
                                                    <td>
                                                        <button class="btn btn-light btn-sm btn-dark"
                                                                ng-click="resetData()">重填
                                                        </button>
                                                        &nbsp;
                                                        <button class="btn btn-light btn-sm btn-dark"
                                                                ng-click="submitData()">卖出
                                                        </button>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 买盘卖盘 -->
                    <div class="col-xl-4 col-lg-5">
                        <div class="card shadow mb-4">
                            <!-- 买卖盘头部区域 -->
                            <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between ">
                                <h6 class="m-0 font-weight-bold text-primary">最新 ：<a
                                        class="ng-cloak">￥{{stockNewprice}}</a></h6>
                                <h6 class="m-0 font-weight-bold text-info ng-cloak">涨幅 ： <a class="ng-cloak">￥{{stockUpanddowns}}</a>
                                </h6>
                                <h6 class="m-0 font-weight-bold text-success ng-cloak">涨停 ：<a class="ng-cloak">￥{{stockRMax}}</a>
                                </h6>
                                <h6 class="m-0 font-weight-bold text-danger ng-cloak">跌停 ：<a class="ng-cloak">￥{{stockFMix}}</a>
                                </h6>
                                <div class="dropdown no-arrow">
                                </div>
                            </div>
                            <!-- 买卖盘信息区域 -->
                            <div class="card-body" style="height: 409px">
                                <div class="chart-area">
                                    <!--在要加的内容外面套上这样一个div ，可保持同行模板展示同步 class="chart-area"-->
                                    <div class="table-responsive" style="font-size: 14px;">
                                        <table class="table table-sm table-borderless text-center" id="dataTable"
                                               width="100%"
                                               cellspacing="0">
                                            <thead>
                                            <tr>
                                                <!--<th colspan="4">表头</th>-->
                                            </tr>
                                            </thead>

                                            <tbody style="color: orangered">
                                            <tr>
                                                <th>卖盘</th>
                                                <th>5</th>
                                                <th ng-bind="sfive[4].stockBSQuantity"></th>
                                                <th ng-bind="sfive[4].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>卖盘</th>
                                                <th>4</th>
                                                <th ng-bind="sfive[3].stockBSQuantity"></th>
                                                <th ng-bind="sfive[3].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>卖盘</th>
                                                <th>3</th>
                                                <th ng-bind="sfive[2].stockBSQuantity"></th>
                                                <th ng-bind="sfive[2].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>卖盘</th>
                                                <th>2</th>
                                                <th ng-bind="sfive[1].stockBSQuantity"></th>
                                                <th ng-bind="sfive[1].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>卖盘</th>
                                                <th>1</th>
                                                <th ng-bind="sfive[0].stockBSQuantity"></th>
                                                <th ng-bind="sfive[0].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th colspan="4">
                                                    <hr class="sidebar-divider my-0 bg-gradient-light">
                                                </th>
                                            </tr>
                                            </tbody>
                                            <tfoot style="color:green">
                                            <tr>
                                                <th>买盘</th>
                                                <th>1</th>
                                                <th ng-bind="bfive[0].stockBSQuantity"></th>
                                                <th ng-bind="bfive[0].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>买盘</th>
                                                <th>2</th>
                                                <th ng-bind="bfive[1].stockBSQuantity"></th>
                                                <th ng-bind="bfive[1].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>买盘</th>
                                                <th>3</th>
                                                <th ng-bind="bfive[2].stockBSQuantity"></th>
                                                <th ng-bind="bfive[2].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>买盘</th>
                                                <th>4</th>
                                                <th ng-bind="bfive[3].stockBSQuantity"></th>
                                                <th ng-bind="bfive[3].stockBSPrice"></th>
                                            </tr>
                                            <tr>
                                                <th>买盘</th>
                                                <th>5</th>
                                                <th ng-bind="bfive[4].stockBSQuantity"></th>
                                                <th ng-bind="bfive[4].stockBSPrice"></th>
                                            </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>


                    <!-- 模态框（Modal）  二次确认 -->
                    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                         aria-hidden="true">
                        <div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <h5 class="modal-title" id="myModalLabel" style="font-weight: bolder">委托确认</h5>
                                    <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                                        <span aria-hidden="true">×</span>
                                    </button>
                                </div>

                                <div class="modal-body">

                                    <table class="table ">
                                        <tr>
                                            <td style="text-align: center">
                                                <img src="img/mc.jpg">
                                            </td>
                                            <td>
                                                <table>
                                                    <!--<tr>-->
                                                    <!--<td>资金账号 :</td>-->
                                                    <!--<td>HU1213321</td>-->
                                                    <!--</tr>-->
                                                    <tr>
                                                        <td>股票代码 :</td>
                                                        <td id="gpdm1">{{gpdm1}}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>股票名称 :</td>
                                                        <td id="gpmc1">{{gpmc1}}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>卖出价格 :</td>
                                                        <td id="mcje1">{{mcje1}}</td>
                                                    </tr>
                                                    <tr>
                                                        <td>卖出数量 :</td>
                                                        <td id="mcsl1">{{mcsl1}}</td>
                                                    </tr>

                                                    <!--<tr>-->
                                                    <!--<td>预估金额 :</td>-->
                                                    <!--<td>{{BuyEntrust.stockEntrustMoney*BuyEntrust.stockEntrustNum}}</td>-->
                                                    <!--</tr>-->

                                                    <tr>
                                                        <td colspan="2"
                                                            style="color:red; font-size: 16px ; font-weight: bolder">
                                                            您是否确定以上卖出的委托?
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>

                                </div>

                                <div class="modal-footer text-center">
                                    <button type="button" id="save" ng-click="submitData1()" class="btn btn-warning"
                                            style="width: 20%">是
                                    </button>
                                    <button type="button" id="exit" data-dismiss="modal" class="btn btn-dark"
                                            style="width: 20%">否
                                    </button>
                                </div>
                            </div><!-- /.modal-content -->
                        </div><!-- /.modal -->
                    </div><!-- modal End-->

                    <div class="text-center" style="width: 100%">
                                <span style="font-size: 10px" class="text-center">( 更多详细信息请进入<a
                                        href="weituo.html">我的股票</a> 查看 )</span>

                    </div>
                </div>
            </div>

        </div>
        <!-- End of Main Content -->

        <!-- Footer -->
        <footer class="sticky-footer bg-white">
            <div class="container my-auto">
                <div class="copyright text-center my-auto">
                    <span>Copyright &copy; Your Website 2020</span>
                </div>
            </div>
        </footer>
        <!-- End of Footer -->

    </div>
    <!-- End of Content Wrapper -->

</div>
<!-- End of Page Wrapper -->

<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
</a>

<!-- 退出登录 弹出 模态框区域 -->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">确认要退出登录码?</h5>
                <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">若确认退出.请点击下方->>退出<<-</div>
            <div class="modal-footer">
                <button class="btn btn-secondary" type="button" data-dismiss="modal">返回</button>
                <a class="btn btn-primary" ng-click="delCookie()" href="login.html">退出</a>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="bootstrap/js/jquery-cookie/jquery.cookie.js"></script>

<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>

<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>

<!-- Page level plugins -->
<script src="vendor/datatables/jquery.dataTables.min.js"></script>
<script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>

<!-- Page level custom scripts -->
<script src="js/demo/datatables-demo.js"></script>
<!--6.引入Layer框架的JS-->
<script src="layer/layer/layer.js"></script>

</body>

</html>
